package com.nf.health.app.activity.home.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by he_pan on 2017/4/10.
 * The only genius that is worth anything is the genius for hard work
 *
 * @author he_pan
 * @Description
 */

public class SatisfactionSurveyQuestionBean implements Serializable {


    /**
     * qnumber : 03
     * title : 医生服务态度：
     * correct : 满意
     * type : 1
     * option : 5分,4分,3分,2分,1分
     *
     * 其中type 1单选，2复选，3多文本，4单文本
     */

    private String qnumber;
    private String title;
    private String correct;
    private String type;
    private String option;
    //问题选项,集合形式
    private List<String> optionList = new ArrayList<>();

    public String getQnumber() {
        return qnumber;
    }

    public void setQnumber(String qnumber) {
        this.qnumber = qnumber;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCorrect() {
        return correct;
    }

    public void setCorrect(String correct) {
        this.correct = correct;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getOption() {
        return option;
    }

    public void setOption(String option) {
        this.option = option;
    }

    public List<String> getOptionList() {
        optionList.clear();
        String[] options = option.split(",");
        for (String o : options) {
            optionList.add(o);
        }
        return optionList;
    }

    public void setOptionList(List<String> optionList) {
        this.optionList = optionList;
    }
}
